﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />


<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ihg-theme-draft">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  <jsp:include page="/WEB-INF/include/submenu-session.jsp">
      <jsp:param name="currentUrl" value="${ctx.host}/sessions/${session.id}" />
  </jsp:include>

  <div class="container-fluid ihg-container has-ihg-sidemenu">

    <div class="ihg-breadcrumb">
      <ol class="breadcrumb border-breadcrumb">
        <li class="active">Session Before Preparation</li>
      </ol>
      <div class="pull-right">
        <a href="${ctx.host}/active-sessions" style="color: #155CB2;"><<&nbsp;Go Back List</a>
      </div>
    </div>

    <div class="ihg-content-layout has-operation">
      <div class="row">
        <div class="col-xs-12">
          <ul class="nav nav-tabs" role="tablist" style="margin-top: 20px;">
            <li role="preparation"><a href="${ctx.host}/sessions/${session.id}/preparations/delegate-summary" role="tab">Summary</a></li>
            <li role="preparation"><a href="${ctx.host}/sessions/${session.id}/delegate-virtual-hotel" role="tab">The Virtual Hotel</a></li>
            <li role="preparation"><a href="${ctx.host}/sessions/${session.id}/career-path" role="tab">Career Path</a></li>
            <li role="preparation"><a href="${ctx.host}/sessions/${session.id}/evaluation" role="tab">Evaluation</a></li>
            <li role="preparation" class="active"><a href="${ctx.host}/sessions/${session.id}/delegate-qa-call" role="tab">Delegate Q&A Call</a></li>
          </ul>
          
          <div class="tab-content" style="margin-top: 25px;">
            <div class="row">
              <div class="col-xs-6">
          
                <div class="panel panel-default ihg-panel">
                  <div class="panel-heading">
                    <span class="panel-titles text-success" style="font-size: 13px; font-weight: bold;"><i class="glyphicon glyphicon-th-large" style="top: 2px;"></i>&nbsp;&nbsp;Zoom Info</span>
                    <div class="pull-right">
                      <a href="${ctx.host}/sessions/${session.id}/delegate-qa-call/${sessionMeeting.id}/edit-date" data-target="#edit-date" data-toggle="modal">Edit Date</a>
                    </div>
                  </div>
                  <div class="panel-body" style="padding: 15px 0;">
                    <div class="form-horizontal ihg-form">
                      
                      <div class="form-group ihg-form-group">
                        <label class="control-label col-xs-3">Date :</label>
                        <div class="col-xs-7">
                          <p class="form-control-static">
                            <fmt:formatDate value="${sessionMeeting.startTime}" pattern="yyyy-MM-dd HH:mm"/>&nbsp;&nbsp;~&nbsp;&nbsp;<fmt:formatDate value="${sessionMeeting.endTime}" pattern="yyyy-MM-dd HH:mm"/>
                          </p>
                        </div>
                      </div>
                      
                      <div class="form-group ihg-form-group">
                        <label class="control-label col-xs-3">Meeting Host :</label>
                        <div class="col-xs-3">
                          <p class="form-control-static">${persist.getSessionHost(sessionMeeting.owner).name}</p>
                        </div>
                      </div>
                      
                      <div class="form-group ihg-form-group">
                        <label class="control-label col-xs-3">Zoom Link:</label>
                        <div class="col-xs-6">
                          <p class="form-control-static">
                            <a href="${sessionMeeting.conferenceRoom.url}"  target="_blank">Link</a>
                          </p>
                        </div>
                      </div>
          
                      <div class="form-group ihg-form-group">
                        <label class="control-label col-xs-3">Account:</label>
                        <div class="col-xs-3">
                          <p class="form-control-static">${sessionMeeting.conferenceRoom.account}</p>
                        </div>
                        <label class="control-label col-xs-3">Password:</label>
                        <div class="col-xs-3">
                          <p class="form-control-static">${sessionMeeting.conferenceRoom.password}</p>
                        </div>
                      </div>
          
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-xs-6">
          
                <div class="panel panel-default ihg-panel">
                  <div class="panel-heading">
                    <span class="panel-titles text-success" style="font-size: 13px; font-weight: bold;"><i class="glyphicon glyphicon-th-large" style="top: 2px;"></i>&nbsp;&nbsp;Delegate List</span>
                  </div>
                  <div class="panel-body no-padding">
                    <table class="table table-hover ihg-table-table" style="margin-bottom: 0px;">
                      <thead>
                        <tr>
                          <th>DELEGATE NAME</th>
                          <th>EMAIL ADDRESS</th>
                          <th>TELEPHONE</th>
                          <th>HOTEL NAME</th>
                        </tr>
                      </thead>
                      <tbody>
                        <c:forEach var="delegate" items="${delegates}">
                          <tr>
                            <td>${delegate.name}</td>
                            <td>${delegate.email}</td>
                            <td>${delegate.telephone}</td>
                            <td>${delegate.hotelName}</td>
                          </tr>
                        </c:forEach>
                      </tbody>
                    </table>
                  </div>
                </div>
              </div>
            </div>

          </div>
        </div>
        
      </div>
    </div>

  </div>

  <%@ include file="/WEB-INF/include/footer.jsp"%>
  <%@ include file="/WEB-INF/include/script.jsp"%>
  
  <d:resource root="${ctx.resource}/build" type="script" src="js/page/session/preparation/qa-call-view.js" />
  <script type="text/javascript">
    require([ 'page/session/preparation/qa-call-view' ], function(page) {
      page.init();
    })
  </script>
  
</body>
</html>